Optimal. Leaf size=88 \[ -\frac {(3 a-b) \cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{3 (a-b)^2 f}+\frac {\cos ^3(e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{3 (a-b) f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {3745, 464, 270}
\begin {gather*} \frac {\cos ^3(e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{3 f (a-b)}-\frac {(3 a-b) \cos (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{3 f (a-b)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 464
Rule 3745
Rubi steps
\begin {align*} \int \frac {\sin ^3(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx &=\frac {\text {Subst}\left (\int \frac {-1+x^2}{x^4 \sqrt {a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac {\cos ^3(e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{3 (a-b) f}+\frac {(3 a-b) \text {Subst}\left (\int \frac {1}{x^2 \sqrt {a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{3 (a-b) f}\\ &=-\frac {(3 a-b) \cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{3 (a-b)^2 f}+\frac {\cos ^3(e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{3 (a-b) f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.54, size = 74, normalized size = 0.84 \begin {gather*} \frac {\cos (e+f x) (-5 a+b+(a-b) \cos (2 (e+f x))) \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^2(e+f x)}}{6 \sqrt {2} (a-b)^2 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.29, size = 104, normalized size = 1.18
method | result | size |
default | \(\frac {\left (a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b \right ) \left (a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b -3 a +b \right )}{3 f \sqrt {\frac {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}{\cos \left (f x +e \right )^{2}}}\, \cos \left (f x +e \right ) \left (a -b \right )^{2}}\) | \(104\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 112, normalized size = 1.27 \begin {gather*} -\frac {\frac {3 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{a - b} - \frac {{\left (a - b + \frac {b}{\cos \left (f x + e\right )^{2}}\right )}^{\frac {3}{2}} \cos \left (f x + e\right )^{3} - 3 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} b \cos \left (f x + e\right )}{a^{2} - 2 \, a b + b^{2}}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.93, size = 79, normalized size = 0.90 \begin {gather*} \frac {{\left ({\left (a - b\right )} \cos \left (f x + e\right )^{3} - {\left (3 \, a - b\right )} \cos \left (f x + e\right )\right )} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{3 \, {\left (a^{2} - 2 \, a b + b^{2}\right )} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 205 vs.
\(2 (84) = 168\).
time = 1.20, size = 205, normalized size = 2.33 \begin {gather*} \frac {{\left (3 \, a \sqrt {b} - b^{\frac {3}{2}}\right )} \mathrm {sgn}\left (f\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right )}{3 \, {\left (a^{2} {\left | f \right |} - 2 \, a b {\left | f \right |} + b^{2} {\left | f \right |}\right )}} + \frac {{\left (a \cos \left (f x + e\right )^{2} - b \cos \left (f x + e\right )^{2} + b\right )}^{\frac {3}{2}} f^{2}}{3 \, {\left (a {\left | f \right |} \mathrm {sgn}\left (f\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right ) - b {\left | f \right |} \mathrm {sgn}\left (f\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right )\right )} {\left (a f^{2} - b f^{2}\right )}} - \frac {\sqrt {a \cos \left (f x + e\right )^{2} - b \cos \left (f x + e\right )^{2} + b} a}{a^{2} {\left | f \right |} \mathrm {sgn}\left (f\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right ) - 2 \, a b {\left | f \right |} \mathrm {sgn}\left (f\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right ) + b^{2} {\left | f \right |} \mathrm {sgn}\left (f\right ) \mathrm {sgn}\left (\cos \left (f x + e\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\sin \left (e+f\,x\right )}^3}{\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________